<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>北京联合大学</title>
</head>
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://at.alicdn.com/t/font_835526_xufba1hg66.css">
<link rel="stylesheet" href="../../css/Initialization.css">
<link rel="stylesheet" href="../../css/commen.css">
<link rel="stylesheet" href="../../css/unit.css">
<body>
<div id="content">
    <div class="initer">
            <!-- 具体内容 -->
            <!-- 单元知识点详情 具体内容 -->
            <div class="bread">
                <div class="plain" th:text="${menu.menuname}">成立公司</div>
                <div class="plain">
                    <i class="iconfont icon-right"></i>
                </div>
                <div class="plain current"><a th:href="@{basicslist(mid=${menu.id},sid=${smenu.id},gradeid=${content.gradeid})}" th:text="${smenu.menuname}">单元知识点</a></div>
                <div class="plain">
                    <i class="iconfont icon-right"></i>
                </div>
                <div class="plain current" th:text="${content.title}">单元知识点</div>
            </div>
            <div class="download">
                <div class="downtitle">
                    <div class="title" th:text="${content.title}">成立公司课程知识点内容</div>
                    <div class="navs">
                        <span class="nav" th:text="${content.author}">发布人</span>
                        <span class="nav" th:text="'发布时间：'+${#dates.format(content.createtime, 'yyyy-MM-dd')}">发布时间：2019-08-09</span>
                        <span class="nav" th:text="'阅读量：'+${content.clicks}">阅读量：888</span>
                        <span class="nav" th:text="'下载数：'+${content.downloadcount}">下载数：50</span>
                        <span class="min-button" th:if="${content.attachments != null && content.attachments.length() > 0}" th:onclick="'javascript:download(\''+${content.id}+'\')'">附件下载</span>
                        <span class="min-button gray" th:if="${content.attachments == null || content.attachments.length() == 0}">附件下载</span>
                    </div>
                </div>
                <div class="line"></div>
                <div class="articl" th:utext="${content.detail}">

                </div>
                <div class="btns">
                    <span class="max-button" th:if="${content.attachments != null && content.attachments.length() > 0}" th:onclick="'javascript:download(\''+${content.id}+'\')'">附件下载</span>
                    <span class="max-button gray" th:if="${content.attachments == null || content.attachments.length() == 0}">附件下载</span>
                    <span class="max-button" onclick="history.back()">返回</span>
                </div>
            </div>
        </div>
</div>
<script src="../../js/jquery-3.4.1.min.js"></script>
<script src="../../js/commen.js"></script>
<script>
    function download(id) {
        location.href = "downloadContent?id="+id;
    }
</script>
</body>
</html>

